package com.freemalll.merchant.common;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Indexed;

import java.lang.annotation.*;


/**
 * 描述枚举的注解
 *
 * @author <a href="https://github.com/TAKETODAY">Harry Yang</a>
 * @since 1.0 2021/12/16 9:49
 */
@Indexed
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface Enumeration {

    /**
     * id
     */
    String id() default Constant.DEFAULT_NONE;

    @AliasFor("description")
    String value() default Constant.DEFAULT_NONE;

    /**
     * 枚举的描述
     */
    @AliasFor("value")
    String description() default Constant.DEFAULT_NONE;

}
